import request from '@/utils/request'

// 获取医生的患者列表
export function DocterGetPaientList(data) {
  return request({
    url: '/appiontment/queuestatus',
    method: 'get',
    params: data
  })
}

// 获取某个患者的病历列表
export const DocterGetPaientRecordList = (obj) => {
  return request({
    url: '/medical_record/patient_all',
    method: 'get',
    params: obj
  })
}

// 获取某个病历信息
export const DocterGetRecord = (obj) => {
  return request({
    url: '/medical_record/target',
    method: 'get',
    params: obj
  })
}

// 创建病历
export const DocterCreateNewRecord = (obj) => {
  return request({
    url: '/medical_record/create',
    method: 'post',
    data: obj
  })
}

// 修改病历
export const DocterUpdateRecord = (obj) => {
  return request({
    url: '/medical_record/change',
    method: 'post',
    data: obj
  })
}

// 结束病历

export const DocterEndRecord = (obj) => {
  return request({
    url: '/medical_record/done',
    method: 'post',
    data: obj
  })
}

// 叫号
export const DocterCallNumber = (obj) => {
  return request({
    url: '/doctor/call',
    method: 'get',
    params: obj
  })
}

// 获取当前患者
export const DocterGetCurrentPaient = (obj) => {
  return request({
    url: '/appiontment/get_current_patient',
    method: 'get',
    params: obj
  })
}
